package com.wangijun.yuan.core.model.em;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * yes_no
 *
 * @author mldong
 */
@Getter
public enum UserStatusEnum  {
    /**
     * 是
     */
    normal(0, "正常"),
    /**
     * 否
     */
    disable(1, "禁用"),

    del(2, "注销"),
    ;

    @EnumValue
    @JsonValue
    private final Integer code;
    private final String message;

    UserStatusEnum(int value, String name) {
        this.code = value;
        this.message = name;
    }
}